package org.tool.spring;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.tool.spring.servlet.support.DefaultInputStringManager;
import org.tool.spring.servlet.support.InputStringManager;

/**
 * tool-spring 工程配置类
 *
 * @author 李坤
 * @date 2022/7/8 17:41
 */
@ComponentScan
public class SpringToolConfigure {

    @Bean
    @ConditionalOnMissingBean(InputStringManager.class)
    public InputStringManager inputStringManager() {
        return new DefaultInputStringManager();
    }

}
